package database

import (
	"gitee.com/ljhzll/go-redis/interface/resp"
	"gitee.com/ljhzll/go-redis/resp/reply"
)

func Ping(db *DB, args [][]byte) resp.Reply {
	if len(args) == 0 {
		return &reply.PongReply{}
	} else {
		return reply.MakeErrReply("ERR wrong number of arguments for 'ping' command")
	}
}
func init() {
	RegisterCommand("ping", Ping, -1)
}
